package cn.rkylin.oms.salespromotion.rules.dao;

import java.util.List;

import cn.rkylin.oms.salespromotion.rules.domain.SalesPromotionConstrainGoods;

public interface ISalesPromotionConstrainGoodsDAO {
    /**
     * 根据规则ID删除限制商品
     * @param ruleId
     * @return
     */
    int deleteByRuleId(String ruleId) throws Exception;

    /**
     * 新增限制商品
     * @param record
     * @return
     */
    int insert(SalesPromotionConstrainGoods record) throws Exception;

    /**
     * 根据规则ID查询限制商品列表
     * @param constrainGoodsId
     * @return
     */
    List<SalesPromotionConstrainGoods> selectByRuleId(String ruleId) throws Exception;
}